<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>物品</title>
</head>
<body>

<jsp:include page="WEB-INF/top.jsp"></jsp:include><br>

<div class="w_normal center">

<!-- 搜索 开始 -->
<div class="naviBar">按条件搜索</div>
<div class="outlined">
<form action="itemAction!search.action">
包含名称:<input type="text">
物品特级:<input type="number" min="1" max="10" >
物品类型:
<select>
<option>消耗品</option>
<option>装备</option>
</select>
<input type="submit" value="查询">
</form>
</div>
<!-- 搜索 结束 -->


<!-- 列表 开始 -->
<div class="naviBar">列表</div>
<div class="outlined">
<table width="100%" class="table_n" border=0 cellspacing="1"  cellpadding="5" >
<thead>
<tr class="tr_navi"><td width="10%">ID</td><td width="20%">名称</td><td width="20%">等级</td><td width="50%">描述</td></tr></thead>
<tbody id="contentList">
<tr class="tr_content" bordercolor="black" bgcolor="white" ><td>0</td><td>测试物品</td><td>1</td><td>这只是一个测试物品</td></tr>
</tbody>
</table>

</div>
<!-- 列表 结束 -->

<!-- 添加开始 -->
<c:if test="${user_session!=null }">
<form action="itemAction!add.action">
<div class="naviBar">添加新物品</div>
<table width="100%" class="table_n" border=0 cellspacing="1"  cellpadding="5" >
<tr>
<td class="tr_navi">物品等级</td><td  class="tr_content"><input type="number" name="item.level"></td>
<td class="tr_navi">物品名称</td><td class="tr_content"><input type="text" name="item.name"></td>
<td class="tr_navi">物品类别</td><td class="tr_content">
<select name="item.type">
<option>消耗品</option>
<option>装备</option>
</select></td>
</tr>
<tr><td class="tr_navi" >物品描述</td><td  class="tr_content" colspan="5"><textarea name="item.description" cols="100%" rows="5"></textarea></td></tr>
<tr><td class="tr_navi" >物品效果</td><td  class="tr_content" colspan="5"><textarea name="item.effect" cols="100%" rows="5"></textarea></td></tr>
</table>
<input type="submit" value="添加">

</form>

</c:if>
<!-- 添加结束 -->
</div>
</body>
</html>